package cn.wolfcode.wolf2w.controller;


import cn.wolfcode.wolf2w.service.IViewService;
import cn.wolfcode.wolf2w.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/persons")
public class ViewController {
    @Autowired
    private IViewService iViewService;

    @RequestMapping("/get")
    public Object get(String userId) {
        return JsonResult.success(iViewService.get(userId));
    }


}